package com.gopay.common.cps.dao.bt;

import java.io.Serializable;
import java.util.List;

import com.gopay.common.base.dao.BaseDAO;
import com.gopay.common.domain.cps.CpsGainsCalRecord;

/**
 * G商银通-收益记录
 * @CpsGainCalRecordDAO.java
 * @author mz
 * @2013-8-1 上午11:55:37  www.gopay.com.cn Inc.All rights reserved.
 */
public interface CpsGainCalRecordDAO extends BaseDAO<CpsGainsCalRecord, Serializable> {
    
    
    /**
     * 根据计算时间查询收益记录
     * @param startDate
     * @param endDate
     * @return
     */
    public List<CpsGainsCalRecord> getGainCalRecordWithTime(String startDate,String endDate,String jobId);
    
    /**
     * 取消结算单，更新收益记录信息
     * @param settleOrderNum
     */
    public void updateGainCalRecordsToCancelSettleOrder(String settleOrderNum);
    
    
    /**
     * 根据结算单号 查询收益记录
     * @param settleOrderNum
     * @return
     */
    public List<CpsGainsCalRecord> getGainCalRecordBySettleOrderNum(String settleOrderNum);
    
    /**
     * 根据recordId查询收益记录
     * @param recordId
     * @return
     */
    public CpsGainsCalRecord getGainCalRecordByRecordId(long recordId);
    
    /**
     * 根据recordId查询收益记录
     * @param recordId
     * @return
     */
    public CpsGainsCalRecord getGainCalRecordByJobIdAndCalDate(String jobId,String CalDate);

}
